package com.songjia.springcloud.config;

import org.mybatis.spring.boot.autoconfigure.ConfigurationCustomizer;
import org.springframework.context.annotation.Configuration;

/**
 * 
 * 
 * @Description: Mybatis自定义配置
 *
 * @author: songjia
 * @date: 2018年8月11日 上午10:56:50
 */
@Configuration
public class MybatisConfig {

	public ConfigurationCustomizer configurationCustomizer() {
		return new ConfigurationCustomizer() {

			@Override
			public void customize(org.apache.ibatis.session.Configuration configuration) {
				// 开启驼峰映射
				configuration.setMapUnderscoreToCamelCase(true);
			}
		};
	}
}
